package org.example.controller;

import jakarta.annotation.Resource;
import org.example.service.ProdiverService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther:Liu
 * @Testname:ProdiverController
 * @Date:2025/9/8 15:33
 */
@RestController
@RequestMapping("/prodiver")
public class ProdiverController {

    @Resource
    private ProdiverService prodiverService;

    @GetMapping
    public String A() {
        return prodiverService.a();
    }

    @GetMapping("/b/{name}")
    public String b(@PathVariable("name") String name){
        return "This is a prodiver,"+name;
    }
}
